﻿using UnityEngine;
using System.Collections;

public class UIInputSpace : MonoBehaviour {
    [SerializeField]
    private int Length=0;
    [SerializeField]
    private string str = " ";
    private UIInput _input;
	void Start () {
        _input = transform.GetComponent<UIInput>();
        _input.onValidate = TextValidate;
	}
	private char TextValidate(string text,int charIndex,char addedChar)
    {
       // Debug.Log(text+"   "+charIndex+"   "+addedChar);
        return addedChar;
    }
}
